
project(Module)

include_directories("${PROJECT_SOURCE_DIR}/../../3rdparty/pycxx-7.1.7/" "${PROJECT_SOURCE_DIR}/../../3rdparty/Python38/include/")

link_directories(${PROJECT_BINARY_DIR}/../bin)

file(GLOB SRC_H ./*.h)

file(GLOB SRC_CPP ./*.cpp)

set(OUTPUT "${PROJECT_NAME}_d")

add_library(${OUTPUT} SHARED ${SRC_H} ${SRC_CPP})

set_target_properties(${OUTPUT} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/../bin)

set_target_properties(${OUTPUT} PROPERTIES SUFFIX ".pyd")

target_link_libraries(${OUTPUT} ${PROJECT_SOURCE_DIR}/../../3rdparty/Python38/libs/python38_d.lib pycxxlib.lib)